package wechat.handler.resources;

import wechat.handler.util.Configure;
import wechat.handler.util.aes.AesException;
import wechat.handler.util.aes.WXBizMsgCrypt;

public abstract class BaseResource {
	protected static Configure INS = Configure.getInstans();
	protected static final String APPID = "appid";
	protected static final String APPSECRET = "appsecret";
	protected static final String TOKEN = "token";
	protected static final String ENCODINGAESKEY = "encodingAESKey";
	protected static final String WECHATID = "wechatid";
	
	
	protected abstract String getAppid();
	protected abstract String getAppsecret();
	protected abstract String getToken();
	protected abstract String getEncodingAESKey();
	protected abstract String getWechatid(); //公众号的ID
	
	protected abstract WXBizMsgCrypt getWXBizMsgCrypt() throws AesException;
	
	//企业号
//	protected static final String CORPID = "corpid";
//	protected static final String APPID = "appid";
//	protected static final String SECRET = "secret";
//	protected static final String TOKEN = "token";
//	protected static final String ENCODINGAESKEY = "encodingAESKey";
//	
//	
//	protected abstract String getAppid();
//	protected abstract String getSecret();
//	protected abstract String getToken();
//	protected abstract String getEncodingAESKey();
//	protected abstract String getCorpid(); 
}
